
import request from "@/utils/request";
class API {
  static getList (params) {
    return request({
      url: `/api/admin/payment-methods`,
      method: "GET",
      params
    });
  }
  static add (data) {
    return request({
      url: `/api/admin/payment-methods`,
      method: "POST",
      data
    });
  }
  /*     修改    */
  static put (data) {
    return request({
      url: `/api/admin/payment-methods/${data.id}`,
      method: "PUT",
      data
    });
  }
  /*     删除    */
  static del (data) {
    return request({
      url: `/api/admin/payment-methods/${data.id}`,
      method: "DELETE",
    });
  }
  static providers (params) {
    return request({
      url: "/api/admin/payment-providers",
      method: "GET",
      params
    });
  }
  static getCurr (params) {
    return request({
      url: "/api/admin/payment-provider-currencies",
      method: "GET",
      params
    });
  }
  static getChannels (params) {
    return request({
      url: "/api/admin/payment-provider-channels",
      method: "GET",
      params
    });
  }

}

export default API;